package model

import "time"

// type DoorStatus uint8

// const (
// 	None        DoorStatus = 0  //未知
// 	Started     DoorStatus = 1  //已开启
// 	Closed      DoorStatus = 2  //已关闭
// 	Doing       DoorStatus = 3  //运行中
// 	Stoped      DoorStatus = 4  //已停止
// 	CanPutGoods DoorStatus = 5  //可放货
// 	CanGetGoods DoorStatus = 6  //可取货
// 	Err         DoorStatus = 7  //故障
// 	Free        DoorStatus = 8  //空闲
// 	Completed   DoorStatus = 9  //完成
// 	Initing     DoorStatus = 10 //初始化
// )

//小车类型
type User struct {
	Account string `json:"account" bson:"account" binding:"required"` //帐号
	Name    string `json:"name" bson:"name"  binding:"required"`      //姓名
	Passwd  string `json:"passwd" bson:"passwd" binding:"required"`   //密码
	RoleId  string `json:"role_id" bson:"role_id" binding:"required"` //角色 "1":超级管理员 "2":系统开发人员 "3":实施人员
	// Gender      bool `json:"is_online"` // 0:男 1：女
	// MobilePhone string
	CreateTime time.Time `json:"-" bson:"create_time"`
	UpdateTime time.Time `json:"-" bson:"update_time"`
}
type UserVerify struct {
	Account string `json:"account" bson:"account" binding:"required"` //帐号
	Passwd  string `json:"passwd" bson:"passwd" binding:"required"`   //密码
}

func (User) TableName() string {
	return "t_data_sys_users"
}
